package com.iwy.hadoop;

import com.iwy.hadoop.hdfs.HDFSClient;

/**
 * @Author weibi
 * @Date 2021/1/20 15:23
 * @Description //TODO
 */
public class Main {


    public static void main(String[] args) {

        HDFSClient hdfsClient = new HDFSClient();
//        String path = "/0120/weibi";
//        System.out.println(hdfsClient.mkdirs(path));

//        hdfsClient.uploadToHDFS("D:\\soft\\hadoop-2.7.3.tar.gz", "/hadoop-2.7.3.tar.gz");

//        hdfsClient.downFromHDFS("/weibi.txt","D:\\weibi.txt");

        hdfsClient.delete("/0121/output");

//        hdfsClient.rename("/upload1.txt", "/upload.txt");

//        System.out.println(hdfsClient.fileDetail("/upload.txt"));

//        System.out.println(hdfsClient.isFile("/1218/weibi/music"));

//        hdfsClient.downBlock(1, "/hadoop-2.7.3.tar.gz", "D:\\hadoop-2.7.3.tar.gz.part2", Boolean.TRUE);

        hdfsClient.close();
    }
}
